package com.intelligentclass.entity;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;

@Entity
public class Exercise {

    @Id
    private int eid;

    private String name;
    private int cid;
    private int parent;

    private int isLeaf;

    public Exercise(){}
    public Exercise(String name, int cid, int parent, int isLeaf) {
        this.name = name;
        this.cid = cid;
        this.parent = parent;
        this.isLeaf = isLeaf;
    }

    public int getEid() {
        return eid;
    }
    public void setEid(int eid) {
        this.eid = eid;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getCid() {
        return cid;
    }
    public void setCid(int cid) {
        this.cid = cid;
    }
    public int getParent() {
        return parent;
    }
    public void setParent(int parent) {
        this.parent = parent;
    }
    public int getIsLeaf() {
        return isLeaf;
    }
    public void setIsLeaf(int isLeaf) {
        this.isLeaf = isLeaf;
    }

}
